package io.renren.modules.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.renren.common.validator.group.AddGroup;
import io.renren.common.validator.group.UpdateGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.util.Date;

/**
 * 实验室
 * 
 * @author Mark
 * @email sunlightcs@gmail.com
 * @date 2021-10-08 15:50:02
 */
@Data
@TableName("jx_laboratory")
public class JxLaboratoryEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 实验室id
	 */
	@TableId
	private Long id;
	/**
	 * 实验室名称
	 */
	@NotBlank(message="请填写实验室名称", groups = {AddGroup.class, UpdateGroup.class})
	private String name;
	/**
	 *  简介
	 */
	@NotBlank(message="请填写实验室简介", groups = {AddGroup.class, UpdateGroup.class})
	private String introduction;

	/**
	 * 实验室说明
	 */
	@NotBlank(message="请填写实验室说明", groups = {AddGroup.class, UpdateGroup.class})
	private String laboratoryDesc;
	/**
	 * 实验室编号
	 */
	@NotBlank(message="请填写编号", groups = {AddGroup.class, UpdateGroup.class})
	private String num;

	/**
	 * 设备数量
	 */
	private Integer deviceSize;
	/**
	 * 排序
	 */
	@NotNull(message="排序不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private Integer orderNum;
	/**
	 * 学院
	 */
	@NotNull(message="请选择您的班级", groups = {AddGroup.class, UpdateGroup.class})
	private Long schoolId;

	/**
	 * 图片地址
	 */
	@NotBlank(message="请上传图片", groups = {AddGroup.class, UpdateGroup.class})
	private  String imgUrl;

	/**
	 * 学校名称
	 */

	@TableField(exist=false)
	private  String schoolName;

	/**
	 * 公网ip
	 */
	@NotBlank(message="公网ip不能为空", groups = {AddGroup.class, UpdateGroup.class})
	private  String internetIp;

}
